<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../../baselist.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>

<body>
<form name="icform" method="post">

    <div id="menubar">
        <div id="middleMenubar">
            <div id="innerMenubar">
                <div id="navMenubar">
                    <ul>
                        <li id="view"><a href="#" onclick="formSubmit('toview.action','_self');this.blur();">查看</a></li>
                        <li id="new"><a href="#" onclick="formSubmit('tocreate.action','_self');this.blur();">新增</a></li>
                        <li id="update"><a href="#" onclick="formSubmit('${ctx}/cargo/contract/export/toupdate.action','_self');this.blur();">修改</a></li>
                        <li id="deletebyid"><a href="#" onclick="formSubmit('deleteById.action','_self');this.blur();">删除</a></li>
                        <li id="delete"><a href="#" onclick="formSubmit('delete.action','_self');this.blur();">删除N</a></li>
                        <li id="start"><a href="#" onclick="formSubmit('start.action','_self');this.blur();">上报</a></li>
                        <li id="stop"><a href="#" onclick="formSubmit('stop.action','_self');this.blur();">取消</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <div class="textbox" id="centerTextbox">
        <div class="textbox-header">
            <div class="textbox-inner-header">
                <div class="textbox-title">
                    装箱列表
                </div>
            </div>
        </div>

        <div class="eXtremeTable" >
            <table id="ec_table" class="tableRegion" width="98%" >
                <thead>
                <tr>
                    <td class="tableHeader"><input type="checkbox" name="selid" onclick="checkAll('id',this)"></td>
                    <td class="tableHeader">序号</td>
                    <td class="tableHeader">卖方</td>
                    <td class="tableHeader">买房</td>
                    <td class="tableHeader">发票号</td>
                    <td class="tableHeader">唛头</td>
                    <td class="tableHeader">描述</td>
                    <td class="tableHeader">发票日期</td>
                    <td class="tableHeader">状态</td>
                </tr>
                </thead>
                <tbody class="tableBody" >
                <c:forEach items="${obj}" var="o" varStatus="status">
                    <tr class="odd" onmouseover="this.className='highlight'" onmouseout="this.className='odd'" >
                        <td><input type="checkbox" name="id" value="${o.id}"/></td>
                        <td>${status.index+1}</td>
                        <td>${o.seller}</td>
                        <td>${o.buyer}</td>
                        <td>${o.invoiceNo}</td>
                        <td>${o.marks}</td>
                        <td>${o.descriptions}</td>
                        <td><fmt:formatDate value="${o.invoiceDate}" pattern="yyyy-MM-dd"/></td>
                        <td>
                            <c:if test="${o.state==1}"><font color="green">已上报</font></c:if>
                            <c:if test="${o.state==0}">草稿</c:if>
                        </td>
                        <%--<td><a href="productCreate.action?contractId=${o.id}">货物</a> </td>--%>
                    </tr>
                </c:forEach>

                </tbody>
            </table>
        </div>

    </div>
</form>
</body>
</html>

